<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份前准备">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="dameng-00005.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="dameng-00008">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份前准备</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="dameng-00008"></a><a name="dameng-00008"></a>
  <h1 class="topictitle1">备份前准备</h1>
  <div>
   <p>备份前，请参考<a href="#dameng-00008__zh-cn_topic_0000001505943769_table10744125193920">表1</a>提前准备相关信息。</p>
   <div class="note">
    <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
    <div class="notebody">
     <ul id="dameng-00008__ul17447111517311">
      <li id="dameng-00008__li18475121815115"><span id="dameng-00008__ph1292522251311">本节操作如无特殊说明均以Dameng 8版本为例进行，数据库版本不同操作可能存在差异，请以实际为准。</span></li>
      <li id="dameng-00008__li135951626152410"><span id="dameng-00008__ph1879711368271">对于以集群方式部署的Dameng数据库，如无特殊说明，均需登录集群实例所在的所有主机执行以下操作。</span></li>
     </ul>
    </div>
   </div>
   <div class="tablenoborder">
    <a name="dameng-00008__zh-cn_topic_0000001505943769_table10744125193920"></a><a name="zh-cn_topic_0000001505943769_table10744125193920"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="dameng-00008__zh-cn_topic_0000001505943769_table10744125193920" frame="border" border="1" rules="all">
     <caption>
      <b>表1 </b>备份前准备
     </caption>
     <colgroup>
      <col style="width:26.97%">
      <col style="width:60%">
      <col style="width:13.03%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="26.970000000000006%" id="mcps1.3.3.2.4.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="60.00000000000001%" id="mcps1.3.3.2.4.1.2"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="13.030000000000003%" id="mcps1.3.3.2.4.1.3"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="26.970000000000006%" headers="mcps1.3.3.2.4.1.1 ">
        <ul>
         <li>数据库的安装用户名、密码</li>
         <li>数据库安装目录下的bin目录路径</li>
         <li>dm.ini配置文件所在路径</li>
        </ul> <p></p></td>
       <td class="cellrowborder" valign="top" width="60.00000000000001%" headers="mcps1.3.3.2.4.1.2 "><p>数据库的安装用户名可通过以下方式查询，安装用户的密码请联系数据库管理员获取。</p>
        <ol>
         <li id="dameng-00008__li159953579577">使用PuTTY登录Dameng数据库所在主机，然后切换至<strong id="dameng-00008__b3153175110268">root</strong>用户。</li>
         <li id="dameng-00008__li1899525755716"><a name="dameng-00008__li1899525755716"></a><a name="li1899525755716"></a>执行以下命令，查询数据库的安装用户名、数据库安装目录下的bin目录路径以及dm.ini配置文件所在路径。<pre class="screen">ps -ef | grep dm.ini</pre> <p>回显类似如下信息，其中<span class="filepath">“/dm8/data/DMServer/DAMENG/”</span>即为dm.ini配置文件所在路径，dm.ini文件路径所在行的<strong>dmdba</strong>即为数据库安装用户，<span class="filepath">“/dm8/bin”</span>即为数据库安装目录下的bin目录路径。</p> <pre class="screen">[root@dameng16543 <font style="font-size:8pt" face="Courier New">~</font>]# ps -ef | grep dm.ini
root       508  8886  0 09:45 pts/2    00:00:00 grep --color=auto dm.ini
<strong>dmdba</strong>    21665     1  0 Jul16 ?        00:16:37 <strong>/dm8/bin</strong>/dmserver path=/dm8/data/DMServer/DAMENG/dm.ini -noconsole</pre></li>
        </ol></td>
       <td class="cellrowborder" rowspan="3" valign="top" width="13.030000000000003%" headers="mcps1.3.3.2.4.1.3 "><p><a href="dameng-00008.html">备份前准备</a></p> <p><a href="dameng-00012.html">步骤3：注册Dameng数据库</a></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p>数据库侦听的端口号</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 ">
        <ol>
         <li>使用PuTTY登录Dameng数据库所在主机，然后切换至<strong id="dameng-00008__dameng-00008_b3153175110268">root</strong>用户。</li>
         <li>执行以下命令，查询端口号。<pre class="screen">cat<strong> </strong><em>dm.ini配置文件所在路径</em>/dm.ini | grep PORT_NUM</pre>
          <div class="note">
           <span class="notetitle"> 说明： </span>
           <div class="notebody">
            <p>命令中的<em>dm.ini配置文件所在路径</em>请根据前面<a href="#dameng-00008__li1899525755716">2</a>中查询结果替换。</p>
           </div>
          </div>
          <div class="p">
           回显类似如下，其中<span class="menucascade">“<span class="uicontrol">PORT_NUM</span>”</span>对应的值即为数据库侦听的端口。
           <pre class="screen">                PORT_NUM                        = 5236                  #Port number on which the database server will listen</pre>
          </div></li>
        </ol></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p>数据库认证方式</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 ">
        <ol>
         <li>使用PuTTY登录Dameng数据库所在主机，并执行以下命令，切换至数据库安装用户，以<strong>dmdba</strong>为例。<pre class="screen">su - dmdba</pre></li>
         <li>进入数据库安装目录下的bin目录，以<span class="filepath">“/dm8/bin”</span>为例。<pre class="screen">cd <em>/dm8/bin</em></pre>
          <div class="note">
           <span class="notetitle"> 说明： </span>
           <div class="notebody">
            <p>数据库安装目录下的bin目录路径请根据前面<a href="#dameng-00008__li1899525755716">2</a>查询的结果替换。</p>
           </div>
          </div></li>
         <li>执行以下命令，登录Dameng数据库。<pre class="screen">./disql <em>数据库的安装用户名</em>/<em>数据库的安装用户的密码</em>@LOCALHOST:<em>数据库侦听的端口号</em></pre> <p>示例：</p> <pre class="screen">./disql SYSDBA/SYSDBA@LOCALHOST:5236</pre></li>
         <li>执行以下命令，查看VALUE参数项取值。<pre class="screen">select name, value from v$parameter where name = 'ENABLE_LOCAL_OSAUTH';</pre>
          <div class="p">
           <span><img src="zh-cn_image_0000002164819490.png"></span>
           <ul>
            <li>如果取值为<span class="parmvalue">“1”</span>，则表示为OS认证。</li>
            <li>如果取值为<span class="parmvalue">“0”</span>，则表示非OS认证。</li>
           </ul>
          </div></li>
        </ol></td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="dameng-00005.html">备份</a>
    </div>
   </div>
  </div>
 </body>
</html>